<%@ page pageEncoding="utf-8" session="false" contentType="text/html; charset=utf-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>分类管理</title>
<meta name="robots" content="all"/>
<meta name="googlebot" content="all"/>
<meta name="baiduspider" content="all"/>
<meta name="copyright" content="All Rights Reserved 版权所有"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<link rel="shortcut icon" href="/favicon.ico"/>
<link rel="stylesheet" type="text/css" href="${contextPath}/resource/note/css/note.css"/>
<link rel="stylesheet" type="text/css" href="${contextPath}/resource/note/css/pagebar.css"/>
<script type="text/javascript" src="${contextPath}/resource/user/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="${contextPath}/resource/user/user.js"></script>
<script type="text/javascript" src="${contextPath}/resource/note/note.js"></script>
<script type="text/javascript" src="${contextPath}/resource/note/category-list.js"></script>
<script type="text/javascript" src="${contextPath}/resource/note/themes.js"></script>
<script type="text/javascript" src="${contextPath}/resource/note/scrollpage.js"></script>
</head>
<body style="overflow: auto;">
<div class="menu-bar">
    <a class="button" href="javascript:void(0)" onclick="window.history.back();"><span class="back">&nbsp;</span>返回</a>
    <a class="button" href="javascript:void(0)" onclick="window.location.reload();"><span class="refresh">&nbsp;</span>刷新</a>
    <a class="button create" href="javascript:void(0)"><span class="add">&nbsp;</span>新建分类</a>
    <span class="seperator"></span>
    <a class="button moveup" href="javascript:void(0)">上移</a>
    <a class="button movedown" href="javascript:void(0)">下移</a>
</div>
<table id="category-list" class="list">
    <tr class="head">
        <td class="w400">名称</td>
        <td class="w100">主题</td>
        <td>操 作</td>
    </tr>
    <c:forEach items="${categoryList}" var="category" varStatus="status">
    <tr categoryId="${category.categoryId}" orderNo="${category.orderNo}">
        <td><input name="name" type="text" class="text2" title="点击修改" value="${category.name}" spellcheck="false"/></td>
        <td>
            <select name="theme" selected-value="${category.theme}"></select>
        </td>
        <td>
            <a class="btn" href="/note/category/list.html?categoryId=${category.categoryId}">子分类</a>
            <a class="btn" href="${contextPath}/note/archive/list.html?categoryId=${category.categoryId}">文章管理</a>
            <a class="btn bk-btn-delete" href="javascript:void(0)" categoryId="${category.categoryId}">删除</a>
        </td>
    </tr>
    </c:forEach>
</table>
<div class="c20"></div>
<div id="pageContext" class="hide" contextPath="${contextPath}" categoryId="${category.categoryId}"></div>
</body>
</html>
